﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IMT
{
    /// <summary>
    /// Author: Elliott Perry 01/09/2011
    /// 
    /// Stores the XML Node data for referencing when constructing the message.
    /// </summary>
    public class MessageData
    {

        public string SenderIdentification { get; set; }
        public string AuthenticationToken { get; set; }
        public string Operation { get; set; }
        public string SourceEnvironment { get; set; }
        public string BrokerID { get; set; }
        public string BrokerContactName { get; set; }
        public string BrokerContactTelephone { get; set; }
        public string BrokerContactEmail { get; set; }
        public string InsurerReinsurerName { get; set; }
        public string UMR { get; set; }
        public string Narrative { get; set; }
        public string MasterType { get; set; }
        public string ClassOfBusiness { get; set; }
        public string CoverType { get; set; }
        public string BrokerEndorsementReference { get; set; }
        public string BrokerEndorsementName { get; set; }
        public string GuaIndicator { get; set; }
        public string VersionNumber { get; set; }
        public string[,] PName { get; set; } //holds the list of Underwriter info (i.e. name, duns, etc)
        
        /// <summary>
        /// Constructor for message data
        /// </summary>
        public MessageData()   
        {
            
        }

        /// <summary>
        /// Returns the number of of participants (i.e. Markets)
        /// </summary>
        /// <returns></returns>
        public int getNumberOfMarkets()
        {
            return PName.GetLength(0);
        }

    }
}
